#include "Bear.h"
#include "Physics.h"
#include "Body.h"


Bear::Bear(void) : GameObject()
{
	physics = new Physics(D3DXVECTOR2(-30, 0));
	physics->init();
	physics->setV(1.5f, 0);
	this->addComponent(physics);

	body = new Body();
	body->init();
	body->setSprite(BEAR);
	this->addComponent(body);
}


Bear::~Bear(void)
{
}

void Bear::update()
{
	GameObject::update();	
	if(physics->getPosition().x >= 1900)
	{
		//body->setSprite(BEAR);
		//physics->setV(-1,0);
	}	
}